package com.zyh.server.mapper;

import com.zyh.server.entity.Order;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zyh.server.utils.R;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author ZYH
* @description 针对表【t_order】的数据库操作Mapper
* @createDate 2024-11-19 09:17:09
* @Entity com.zyh.server.entity.Order
*/
@Mapper
public interface OrderMapper extends BaseMapper<Order> {

	/**
	 * 检测用户是否已经下单，能够在数据库中查到数据代表用户已经购买了该商品
	 * @param userId
	 * @param miaoshaGoodsId
	 * @return
	 */
	String checkOrder(@Param("userId") Integer userId,@Param("miaoshaGoodsId") Integer miaoshaGoodsId);

}




